﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            //$.ajax({
            //    url: "/OrderFlowManage/ClientOrder/GetFormJson",
            //    data: { keyValue: keyValue },
            //    dataType: "json",
            //    async: false,
            //    success: function (data) {
            //        $("#form1").formSerialize(data);
            //    }
            //});
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/OrderFlowManage/ClientOrder/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">需求编号</th>
                <td class="formValue">
                    <input id="F_DemandId" name="F_DemandId" type="text" class="form-control required" placeholder="请录入需求编号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">销售人员编号</th>
                <td class="formValue">
                    <input id="F_FlowUserId" name="F_FlowUserId" type="text" class="form-control required" placeholder="请录入销售人员编号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">订单阶段</th>
                <td class="formValue">
                    <input id="F_OrderState" name="F_OrderState" type="text" class="form-control required" placeholder="请录入订单阶段" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">当前状态</th>
                <td class="formValue">
                    <input id="F_OrderStateProcess" name="F_OrderStateProcess" type="text" class="form-control required" placeholder="请录入当前状态的进度" />
                </td>
            </tr>
        </table>
    </div>
</form>


